"use strict";
require("test").setup();

var Coroutine = require('coroutine');
var hash = require('hash');

describe("wechat", function() {
    before(function() {});

    after(function() {
        clearDB();
    });

    it("wechat 业务域名验证", function() {
        var result = httpRequest("GET", "/WbYaaky2y8.txt", {})
        assert.equal(result, "dfa67ba88c71e3723789e98980898b15");
    })

    it("wechat 推送配置验证", function() {
        var result = httpRequest("GET", "/Token?signature=55a91b06ed5c0e23494e75e71f5c3b8060c15109&timestamp=1000&nonce=123&echostr=SSS", {})
        assert.equal(result, "SSS");
    })

});

require('test').run();